package com.sapient.logic;

import java.sql.SQLException;

import com.sapient.DAO.UserDAO;

public class User {

	String username,password,role;

	UserDAO UserDAOobj= new UserDAO();
	public boolean createUser() throws SQLException
	{
		boolean isUser=UserDAOobj.insertUser(username,password,role);
		return isUser;
	}	

	public User(String username, String password, String role)
	{
		this.username = username;
		this.password = password;
		this.role = role;
	}
}